<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
<h:head>
    <title>ddd</title>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
    <link rel="stylesheet" href="/faces/resources/css/style.css" type="text/css"/>
    <f:view locale="#{userBean.locale}"/>

</h:head>
<h:body>

        <div class="center">
            <div style="text-align:right;">
            </div>
            <div class="text">Авторизация : </div>
            <h:form>
                <h:commandButton value="User" action="#{loginBean.doLoginUser}"/>
                <h:commandButton value="Admin" action="#{loginBean.doLoginAdmin}"/><br/>
            </h:form>
            <h:form>

            Логин : <h:inputText value="#{loginBean.login}" required="true" /><br/>
            Пароль : <h:inputText value="#{loginBean.pass}" required="true"/> <br/>

            <h:commandButton value="Войти" action="#{loginBean.doLogin}" id="log" /><br/>
            <h:message for="log"/>

            </h:form>
            <h:form>
                <h:commandLink value="Регистрация" action="registration"/>
                <h:commandButton value="Главная" action="/index"/>
            </h:form>
        </div>


</h:body>
</html>



